//
//  CSBMInetAbountmeSwpping.swift
//  CurSodoboAer
//
//  Created by CurSodoboAer on 2024/11/11.
//

import UIKit

class CSBMInetAbountmeSwpping: UIViewController {
    
    var lohiCSB = UIImageView(image: UIImage.init(named: "Abountrf"))
    private let titlktgCSB = UIImageView(image: UIImage.init(named: "CurlisEnterTitle"))
    private let csbBackComButton = UIButton.init()
    private let nameCountLblbCSB = UILabel.init()
    
    private let veisionCountLblbCSB = UILabel.init()
    override func viewDidLoad() {
        super.viewDidLoad()
        nameCountLblbCSB.text = "About US"
        nameCountLblbCSB.textColor = .white
        nameCountLblbCSB.font = UIFont(name: "Futura Medium", size: 26)
        view.backgroundColor = UIColor(red: 0.64, green: 0.41, blue: 0.98, alpha: 1)
        csbBackComButton.setImage(UIImage.init(named: "csb_back"), for: .normal)
        csbBackComButton.addTarget(self, action: #selector(csbButtonClick), for: .touchUpInside)
        
        veisionCountLblbCSB.textColor = .white
        veisionCountLblbCSB.font = UIFont.systemFont(ofSize: 18, weight: .semibold)
        veisionCountLblbCSB.textAlignment = .center
        view.addSubview(csbBackComButton)
        view.addSubview(nameCountLblbCSB)
        view.addSubview(lohiCSB)
        view.addSubview(titlktgCSB)
        view.addSubview(veisionCountLblbCSB)
        let stattusBarHeight = UIApplication.shared.statusBarFrame.height
        csbBackComButton.snp.makeConstraints { make in
            make.leading.equalToSuperview().inset(12.xQQ)
            make.width.equalTo(24)
            make.height.equalTo(22)
            make.top.equalToSuperview().offset(stattusBarHeight + 15)
        }
        
        veisionCountLblbCSB.text = Bundle.main.infoDictionary?["CFBundleShortVersionString"] as? String
        nameCountLblbCSB.snp.makeConstraints { make in
            make.centerY.equalTo(csbBackComButton)
            make.centerX.equalToSuperview()
        }
        lohiCSB.snp.makeConstraints { make in
            make.centerX.equalToSuperview()
            make.centerY.equalToSuperview().offset(-70)
        }
        
        titlktgCSB.snp.makeConstraints { make in
            make.centerX.equalToSuperview()
            make.top.equalTo(lohiCSB.snp.bottom).offset(16)
            
        }
       
        veisionCountLblbCSB.snp.makeConstraints { make in
            make.centerX.equalToSuperview()
            make.top.equalTo(titlktgCSB.snp.bottom).offset(15)
        }
        
        
        
    }
    

    @objc func csbButtonClick(_ sender: UIButton) {
        
        self.navigationController?.popViewController(animated: true)
    }
    

}
